﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AWS.SLAM.Events;
using StructureMap.Configuration.DSL;

namespace AWS.SLAM.StructureMap
{
    public class DefaultContentTypeProfile : ITypeProfile
    {   
        #region ITypeProfile Members

        public void CreateProfile(Registry registry, string name)
        {
			registry.Profile(name, p => p.For<IItemCreator>().Use<ContentTypeItemCreator>());
			registry.Profile(name, p => p.For<IItemDeleter>().Use<ContentTypeItemDeleter>());
			registry.Profile(name, p => p.For<IItemUpdater>().Use<ContentTypeItemUpdater>());

			//registry.CreateProfile(name).
			//    For<IItemCreator>().UseConcreteType<ContentTypeItemCreator>().
			//    For<IItemDeleter>().UseConcreteType<ContentTypeItemDeleter>().
			//    For<IItemUpdater>().UseConcreteType<ContentTypeItemUpdater>();
        }

        #endregion
    }
}
